﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MantCargos.aspx.cs" Inherits="Bastanteo.Paginas.MantCargos" %>
<%@ Register Src="../Controles/MenuPrincipal.ascx" TagName="MenuPrincipal" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Mantenimiento Cargos</title>
    <link href="../Estilos/General.css" type="text/css" rel="stylesheet" />
    <script language="javascript">
        function Eliminar(id_Competencia) {
            document.frmMain.hididcompetencia.value = id_Competencia;
            document.frmMain.hidAccion.value = "E";
            document.frmMain.submit();
            return;
        }
        function Modificar(id_Tienda) {
            window.location = 'MantTienda.aspx?Accion=M&IdTienda=' + id_Tienda + '&s=' + document.frmMain.s.value + '';
            return;
        }
  
    </script>
</head>
<body>
    <form id="frmMain" runat="server">
    <input type="hidden" runat="server" id="hidAccion"     name="hidAccion" value="" />
    <input type="hidden"  runat="server" id="hidMensaje" name="hidMensaje" value="" />
    <input type="hidden" runat="server" id="hididcompetencia"   name="hididtienda" value="" />
    <input type="hidden" name="s" id="s" value='<%=Request.QueryString["s"]%>'/>
    
    <div>
        <uc1:MenuPrincipal ID="mnuPrincipal" runat="server" />    
    <br />
    <br />
    <table width="98%" cellpadding="0" cellspacing="0" align="center">
	    <tr align="center">		
		    <td class="titulon" valign="middle">Mantenimiento de Cargos</td>
	    </tr>			
    </table>
    <br />
    <table align="center" border="0" cellpadding="1" cellspacing="1" >
        <tr>
            <td class="tdlabelForm">
                Cargo&nbsp;:&nbsp;
                <asp:TextBox ID="txtBuscar" runat="server" style="text-transform :uppercase"  CssClass="tdlabelForm" 
                    Width="200px"></asp:TextBox>&nbsp;&nbsp;
            </td>
            <td class="tdlabelForm">
                <asp:Button ID="BtnBuscar" runat="server" CssClass="btnout" OnClientClick="return Validar();"
                    Text="Buscar" />&nbsp;
                <asp:Button ID="BtnIngresar" runat="server" CssClass="btnout"
                    Text="Ingresar" Width="80px"  />
            </td>
        </tr>
    </table>
        <br />
        <table id="tblGrilla" align="center" runat="server" >
        <tr >
        <td align="center" class="tABLAxml" >
            &nbsp;<asp:GridView ID="GrdWListado" runat="server" DataKeyNames="Id_Competencia" AutoGenerateColumns="False" CellPadding="0" Width="500px">
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField DataField="CargoDescripcion" HeaderText="Cargo">
                        <FooterStyle BackColor="White" />
                        <ItemStyle CssClass="celdaXML" HorizontalAlign="Left" />
                        <ControlStyle Width="40%" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Acci&#243;n">
                    <HeaderStyle HorizontalAlign="Center" CssClass="tituloXML"></HeaderStyle>
				        <ItemStyle CssClass="celdaXML" VerticalAlign="Middle" HorizontalAlign="Center" Width="100px" ></ItemStyle>
				        <ItemTemplate>					
				                &nbsp;
						        <img alt="Eliminar" style="cursor:hand" src="../imagenes/eliminar.gif" border="0" onclick="javascript:Eliminar('<%#Eval("IdPlaza")%>');">
						        &nbsp;&nbsp;
						        <img alt="Modificar" style="cursor:hand" src="../Imagenes/editar.gif" border="0" onclick="javascript:Modificar('<%#Eval("IdPlaza")%>');">
						        &nbsp;
				        </ItemTemplate>
				        <ControlStyle Width="20%" />
                    </asp:TemplateField>               
                </Columns>
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle CssClass="tituloXML" />
                <EditRowStyle BackColor="#7C6F57" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
           </td>
          </tr>
          <tr>
		        <td align="center" style="height: 15px"><asp:label id="lblMensaje" runat="server" CssClass="tdlabelForm" ></asp:label></td>
          </tr>  
            <tr>
                <td align="center" style="height: 15px">
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 15px">
                <table id="tblAccion" align="center" runat="server" >
                    <tr>
                        <td class="tdlabelForm">Cargo : 
                        </td>
                        <td>
                            <input type="text" class="tdlabelForm"  id="txtGrupo" name="txtGrupo" runat="server" style="width: 200px; text-transform :uppercase" />
                        </td>
                        <td>
                            <input type="button" class="btnout" id="btnGrabar" value="Grabar" name="btnGrabar" runat="server"  />
                        </td>
                    </tr>
                </table>
                </td>
            </tr>
         </table>
    </form>
</body>
</html>
